package com.example.cloud.lijianhystrix.controller;

import com.example.cloud.lijianhystrix.service.HelloService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author lj02
 * @desc
 * @date 2018/6/14
 */
//@RibbonClient(name = "foo", configuration = FooConfiguration.class)
@RestController
public class TestController {
    @Autowired
    HelloService helloService;

    @RequestMapping(value = "/hi")
    public String hi() {
        return helloService.hiService("ribbon");
    }

}
